<?php

namespace app\adminapi\controller;
use app\adminapi\controller;
use think\facade\Request;
class Auth extends BaseApi
{
    /*
        获取权限列表
    */ 
    public function index(){
        $list = \app\adminapi\model\Auth::select();
        // 父子级树状列表
        $list = get_tree_list($list->toArray());
        $this->ok($list);
    }
   

}
